package com.project.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDate;

/**
 * 用户实体类
 */
public class UserBean {
    /**编号*/
    private Integer id;
    /**姓名*/
    private String name;
    /**生日*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthday;
    /**工资*/
    private Integer money;
    /**缴税*/
    private double payTaxes;

    public UserBean(Integer id, String name, LocalDate birthday, Integer money, double payTaxes) {
        this.id = id;
        this.name = name;
        this.birthday = birthday;
        this.money = money;
        this.payTaxes = payTaxes;
    }

    public UserBean() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public double getPayTaxes() {
        return payTaxes;
    }

    public void setPayTaxes(double payTaxes) {
        this.payTaxes = payTaxes;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", birthday=" + birthday +
                ", money=" + money +
                ", payTaxes=" + payTaxes +
                '}';
    }
}
